package us.kg.kotoriforest.springmvc.restful.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * {@link BizException} 异常枚举
 *
 * @author Kotori rotroutine@163.com
 * @since 2025/2/8
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@ToString
public enum BizExceptionEnum {
    ORDER_CLOSED(1001, "订单已关闭"),
    ORDER_NOT_FOUND(1002, "订单不存在"),
    ORDER_STATUS_ERROR(1003, "订单状态错误"),
    ORDER_SAVE_ERROR(1004, "订单保存失败"),
    ORDER_UPDATE_ERROR(1005, "订单更新失败"),
    ORDER_DELETE_ERROR(1006, "订单删除失败"),
    PAY_ERROR(1007, "支付失败"),
    PAY_TIMEOUT(1008, "支付超时");


    private int code;
    private String message;
}
